//index.js

Page({
  data: {
    slides: [
      "https://img2.doubanio.com/view/subject/s/public/s34269503.jpg",
      "https://img1.doubanio.com/view/subject/s/public/s34295659.jpg",
      "https://img2.doubanio.com/view/subject/s/public/s34327482.jpg"
    ],
    bargainList: [
      {
        title: "长安的荔枝",
        img: "https://img2.doubanio.com/view/subject/s/public/s34327482.jpg",
        desc: "“一骑红尘妃子笑，无人知是荔枝来。”",
        score: 8.5
      },
      {
        title: "当我们不再理解世界",
        img: "https://img1.doubanio.com/view/subject/s/public/s34295659.jpg",
        desc: "“而他们都不争强好胜，只有帮助和鼓励”",
        score: 8.6
      },
      {
        title: "失明症漫记",
        img: "https://img2.doubanio.com/view/subject/s/public/s34269503.jpg",
        desc: "“有什么爱比精神的爱更纯洁?”",
        score: 8.6
      }
    ],
    topicList: [
      {
        img: "https://img9.doubanio.com/view/subject/l/public/s34346955.jpg",
        title: "数字抑郁时代",
        subTitle: "带给你不一样的体验",
        score: 7.4
      },
      {
        img: "https://img1.doubanio.com/view/subject/l/public/s34333528.jpg",
        title: "柠檬炸弹",
        subTitle: "一颗冰凉的柠檬炸弹",
        score: 8.4
      },
      {
        img: "https://img2.doubanio.com/view/subject/l/public/s34249411.jpg",
        title: "足利女童连续失踪事件",
        subTitle: "你正在和凶手擦肩而过！",
        score: 9.1
      }
    ]

  },
  goDetail: function (event) {
    console.log(event)
    wx.navigateTo({
      url: './goodsDetail/goodsDetail'
    })
  }
})